package cn.juque.datapipeline.mapper;

import cn.juque.datapipeline.entity.TaskGroupRelation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author JUQUE
 * @version 1.0.0
 * <ul>
 *  <li>simple-generator</li>
 *  <li>任务组关系</li>
 * </ul>
 * {@code @date} 2023-04-03 09:58:43
 **/
@Mapper
public interface TaskGroupRelationMapper extends BaseMapper<TaskGroupRelation> {

    /**
     * 分页查询
     *
     * @param page              : page
     * @param taskGroupRelation : taskGroupRelation
     * @return List<TaskGroupRelation>
     */
    List<TaskGroupRelation> queryGroupRelationList(Page<TaskGroupRelation> page, @Param("ew") TaskGroupRelation taskGroupRelation);

    /**
     * 查询
     *
     * @param taskGroupRelation : taskGroupRelation
     * @return List<TaskGroupRelation>
     */
    List<TaskGroupRelation> queryGroupRelationList(@Param("ew") TaskGroupRelation taskGroupRelation);
}
